<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
    <link rel="stylesheet" href="../css/weui.css"/>
    <link rel="stylesheet" href="../css/login.css"/>
    <script src="../js/jquery-2.1.1.min.js"></script>
    <script src="../js/jquery-weui.js"></script>
    <script src="../layer/layer.js"></script>
    <script src="../js/main.js"></script>
    <title></title>
</head>
<body>


<div id="d" style="padding-bottom:10%;width:100%;height:0;margin-top: 1rem;background-color: black;margin-top: 0px;">
    <div style="width:70%;margin:auto auto;">
        <img src="../img/index/top.png" style="height: auto;width:100%; margin:auto auto;"/>
    </div>
</div>


<div class="weui-panel weui-panel_access">

    <div class="weui-panel__bd" id="data">
        <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
            <div class="weui-media-box__hd">
                <img class="weui-media-box__thumb" src="">
            </div>
            <div class="weui-media-box__bd" style="font-size: larger">
                <p>平台成果展示</p>
            </div>
        </a>


        <!--<a href="result/achievement.html" class="weui-media-box weui-media-box_appmsg">-->

            <!--<div class="weui-media-box__bd">-->
                <!--<h4 class="weui-media-box__title">双百行动</h4>-->
                <!--<p class="weui-media-box__desc">双百行动是。。。。。。。。。。</p>-->
            <!--</div>-->
        <!--</a>-->




    </div>
</div>
<script>
    $.ajaxSetup({
        xhrFields: {
            withCredentials: isCrossDomain
        }
    });
    $(function () {
        $.get(mainurl+"get/achievements",function (data) {
            if(checkData(data)){
                var dat = data.data;
                for(var i=0; i<dat.length; i++) {
                    var title = dat[i].achievement;
                    var aid = dat[i].aid;
                    var detail = dat[i].detail;
                    var url = "?id="+aid;
                    $("#data").append("<a href=\"result/achievement.html"+url+"\" class=\"weui-media-box weui-media-box_appmsg\">\n" +
                        "\n" +
                        "            <div class=\"weui-media-box__bd\">\n" +
                        "                <h4 class=\"weui-media-box__title\">"+title+"</h4>\n" +
                        "                <p class=\"weui-media-box__desc\">"+detail+"</p>\n" +
                        "            </div>\n" +
                        "        </a>")
                }
            }
        })
    })
</script>

</body>
</html>
